package com.yaoxuguang.concurrence.reentrantlock.conditon;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.reentrantlock.conditon
 * @Description: 利用Conditon实现等待/通知
 * @date 2018年12月24日15:54
 */
public class Run {
    public static void main(String[] args) {
        try {
            UseConditionWaitNotifyError conditionWaitNotify = new UseConditionWaitNotifyError();
            MyThread myThread = new MyThread(conditionWaitNotify);
            myThread.start();
            Thread.sleep(3000);
            conditionWaitNotify.signal();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
